package org.budo.dubbo.protocol.http.cipher;

import org.budo.dubbo.protocol.http.invocation.BudoDubboRpcInvocation;

/**
 * 内容加密服务
 * 
 * @author lmw
 */
public interface CipherService {
    String CIPHER_SERVICE_IN_REQUEST_ATTRIBUTE_KEY = "CIPHER_SERVICE_IN_REQUEST_ATTRIBUTE_KEY";

    /**
     * 加密
     */
    BudoDubboRpcInvocation cipher(BudoDubboRpcInvocation budoInvocation);

    /**
     * 解密
     */
    BudoDubboRpcInvocation decipher(BudoDubboRpcInvocation budoInvocation);
}